import Layout from "/@/layout/index.vue";

const projectRouter = {
  path: "/project",
  name: "project",
  redirect: "/project/manage",
  component: Layout,
  meta: {
    icon: "el-icon-folder",
    title: "项目管理",
    showLink: true,
    savedPosition: true,
    rank: 4
  },
  children: [
    {
      path: "/project/kanban",
      name: "projectKanban",
      component: () => import("/@/views/project/kanban/index.vue"),
      meta: {
        title: "项目看板",
        showLink: true,
        savedPosition: true
      }
    },
    {
      path: "/project/kanban/notice",
      name: "projectKanbanNotice",
      component: () => import("/@/views/project/kanban/notice/index.vue"),
      meta: {
        title: "公告列表",
        showLink: false,
        savedPosition: true,
        activeMenu: "/project/kanban"
      }
    },
    {
      path: "/project/manage",
      name: "projectManage",
      component: () => import("/@/views/project/manage/index.vue"),
      meta: {
        title: "项目管理",
        showLink: true,
        savedPosition: true
      }
    },
    {
      path: "/project/funds",
      name: "projectFunds",
      component: () => import("/@/views/project/funds/index.vue"),
      meta: {
        title: "经费管理",
        showLink: true,
        savedPosition: true
      }
    },
    {
      path: "/project/change",
      name: "projectChange",
      component: () => import("/@/views/project/change/index.vue"),
      meta: {
        title: "变更管理",
        showLink: true,
        savedPosition: true
      }
    },
    {
      path: "/project/change/detail",
      name: "projectChangeDetail",
      component: () => import("/@/views/project/change/detail/index.vue"),
      meta: {
        title: "变更管理详情",
        showLink: false,
        savedPosition: true,
        activeMenu: "/project/change"
      }
    },
    {
      path: "/project/create",
      name: "projectCreate",
      component: () => import("/@/views/project/create/index.vue"),
      meta: {
        title: "项目创建",
        showLink: false,
        savedPosition: true,
        activeMenu: "/project/manage"
      }
    },
    {
      path: "/project/detail",
      name: "projectDetail",
      component: () => import("/@/views/project/detail/index.vue"),
      meta: {
        title: "项目详情",
        showLink: false,
        savedPosition: true,
        activeMenu: "/project/manage"
      }
    }
  ]
};

export default projectRouter;
